﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using tuwien.auto.eibclient;
using KNXLibrary.Addresses;
using KNXFramework.KNXObjects.ValueObjects;
using KNXLibrary.Enum;

namespace KNXFramework.KNXObjects
{
    public class SwitchingObject : KNXObjectBase
    {
        public SwitchingObject(string id, string address, string name, KNXConnection connection, FlagsEnum flags)
            : base(id, address, name, connection, flags)
        {
        }

        #region Properties

        public override string DataPointID
        {
            get
            {
                return "1.001";
            }
        }
        public override string DataPointEISName
        {
            get
            {
                return "EIS1";
            }
        }

        #endregion

        #region Methods

        public override void SetObjectValue(string value)
        {
            Value = new SwitchingObjectValue(value);
        }
        public override IValueObject GetBaseObjectValue(EIBBuffer buffer)
        {
            return new SwitchingObjectValue(buffer);
        }

        #endregion


    }
}
